<?php
/**
 * @Notes:【】
 * @Date: 2022-07-01 22:44
 */

namespace App\Service\System;

use App\Dao\System\SystemCityDao;

class SystemCityService
{
    private SystemCityDao $systemCityDao;

    public function __construct(SystemCityDao $systemCityDao)
    {
        $this->systemCityDao = $systemCityDao;
    }

    public function lists()
    {
        return $this->systemCityDao->with('Children')->where('parent_id', 0)->get();
    }
}